<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="ShareAreaResult!save.action" method="post" name="form">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <input type="hidden" name="model.cal_unit" value="2"/><!-- 计量单位统一为“元/MWh” -->
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="16%" align="right">所属分摊域：</th>
      <td width="84%">
      	<select name="model.area_id" dataType="Require" msg="请填写选择">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="shareAreaList" var="cur">
      			 <option value="<s:property value="#cur.ID"/>" <s:if test="model.area_id==#cur.ID">selected="selected"</s:if>><s:property value="#cur.AREA_NAME"/></option>
      		</s:iterator>
      	</select>
      </td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊名称：</th>
      <td width="84%"><input name="model.share_name" type="text" class="webinput" size="25" value="<s:property value='model.share_name'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊周期开始日期：</th>
      <td width="84%"><input name="model.start_date" type="text" class="webinput" size="25" onclick="fPopCalendar(this);" readonly="readonly" value="<s:date name='model.start_date'  format='yyyy-MM-dd'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊周期结束日期：</th>
      <td width="84%"><input name="model.end_date" type="text" class="webinput" onclick="fPopCalendar(this);" readonly="readonly" size="25" value="<s:date name='model.end_date'  format='yyyy-MM-dd'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">计量收费基本热价：</th>
      <td width="84%"><input name="model.base_price" type="text" class="webinput" size="25" value="<s:property value='model.base_price'/>"/>MWh</td>
    </tr>
    <!-- tr>
      <th width="16%" align="right">计量收费计量热价：</th>
      <td width="84%"><input name="model.cal_price" type="text" class="webinput" size="25" value="<s:property value='model.cal_price'/>"/>
       <select name="model.cal_unit">
      		<option value="">请选择单位</option>
      		<option value="1" <s:if test="model.cal_unit==1">selected="selected"</s:if>>元/kWh</option>
      		<option value="2" <s:if test="model.cal_unit==2">selected="selected"</s:if>>元/MWh</option>
      		<option value="3" <s:if test="model.cal_unit==3">selected="selected"</s:if>>元/Gj</option>
		</select>
      </td>
    </tr>
    <tr-->
      <th width="16%" align="right">按面积收费热价：</th>
      <td width="84%"><input name="model.price_area" type="text" class="webinput" size="25" value="<s:property value='model.price_area'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">总热用户数：</th>
      <td width="84%"><input name="model.sum_user" type="text" class="webinput" size="25" value="<s:property value='model.sum_user'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">总供热面积：</th>
      <td width="84%"><input name="model.sum_area" type="text" class="webinput" size="25" value="<s:property value='model.sum_area'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">不参与计量收费的总热用户数：</th>
      <td width="84%"><input name="model.sum_other_user" type="text" class="webinput" size="25" value="<s:property value='model.sum_other_user'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">不参与计量收费的总供热面积：</th>
      <td width="84%"><input name="model.sum_other_area" type="text" class="webinput" size="25" value="<s:property value='model.sum_other_area'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊域总耗热量：</th>
      <td width="84%"><input name="model.sum_heat" type="text" class="webinput" size="25" value="<s:property value='model.sum_heat'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">总基本热费：</th>
      <td width="84%"><input name="model.sum_base_money" type="text" class="webinput" size="25" value="<s:property value='model.sum_base_money'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">总计量热费：</th>
      <td width="84%"><input name="model.sum_cal_money" type="text" class="webinput" size="25" value="<s:property value='model.sum_cal_money'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">总热费：</th>
      <td width="84%"><input name="model.sum_heat_money" type="text" class="webinput" size="25" value="<s:property value='model.sum_heat_money'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">不参与计量收费部分的总热费：</th>
      <td width="84%"><input name="model.sum_other_heat_money" type="text" class="webinput" size="25" value="<s:property value='model.sum_other_heat_money'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">需要分摊的总热费：</th>
      <td width="84%"><input name="model.sum_share_money" type="text" class="webinput" size="25" value="<s:property value='model.sum_share_money'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">散热权重合计：</th>
      <td width="84%"><input name="model.sum_sink_weight" type="text" class="webinput" size="25" value="<s:property value='model.sum_sink_weight'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">单位权重热费：</th>
      <td width="84%"><input name="model.per_weight_price" type="text" class="webinput" size="25" value="<s:property value='model.per_weight_price'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">本次分摊的分配表数量合计：</th>
      <td width="84%"><input name="model.share_meter_num" type="text" class="webinput" size="25" value="<s:property value='model.share_meter_num'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">本次分摊是散热器数量合计：</th>
      <td width="84%"><input name="model.sink_num" type="text" class="webinput" size="25" value="<s:property value='model.sink_num'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">平均热指标：</th>
      <td width="84%"><input name="model.avg_heat_target" type="text" class="webinput" size="25" value="<s:property value='model.avg_heat_target'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">平均分摊的分摊方法：</th>
      <td width="84%">
      	<select name="model.share_type" dataType="Require" msg="请填写选择">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.share_type==1">selected="selected"</s:if>>过程分摊</option>
      		<option value="2" <s:if test="model.share_type==2">selected="selected"</s:if>>收费分摊</option>
		</select>
      </td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊人：</th>
      <td width="84%"><input name="model.share_man" type="text" class="webinput" size="25" value="<s:property value='model.share_man'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分摊时间：</th>
      <td width="84%"><input name="model.share_date" type="text" class="webinput" size="25" value="<s:property value='model.share_date'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">备注：</th>
      <td width="84%"><input name="model.demo" type="text" class="webinput" size="25" value="<s:property value='model.demo'/>"/></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/commons/scripts/validator.js'></script> 
<script type="text/javascript">
$j(document).ready(function(){
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
